package com.example.wechatdaka.mapper;

import com.example.wechatdaka.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lx
 * @since 2020-11-05
 */
public interface MenuMapper extends BaseMapper<Menu> {
    @Select("select lxMenuId from lx_role_menu where lxRoleId=(select lxRoleId from lx_user where id=#{lxUserId})")
    public String queryMenuIdsByUser(String lxUserId);
}
